package com.huluobo.jetpackkotlindemo.viewbinding

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.huluobo.jetpackkotlindemo.databinding.FragmentMain2Binding
import com.huluobo.jetpackkotlindemo.viewbinding.BaseFragment

/**
 * Created by lc on 2022/12/9.
 */
class Main2Fragment : BaseFragment<FragmentMain2Binding>() {
    override fun getViewBinding(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): FragmentMain2Binding = FragmentMain2Binding.inflate(inflater, container, false)

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        mViewBinding.tvFragment2.text = "123"
    }
}